export default {
  /**
   * 知识库涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 08010001---文件列表
   *
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {number}  fileTitle             文件名
   * @param  {number}  keyword               关键词
   * @param  {number}  fileFolder            文件夹（1、规范标准、2规章制度、3、计划文档、4、报告文档、5、草案文档、6、其他）
   *
   */
  "POST /repository/repositoryinfo/list": (req, res) =>{
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            repositoryId:"1",
            fileCode: "001",
            fileTitle: "1000",
            keyword: "设备",
            creator: "张三",
            createTime:1515554892000,
            remarks: "备注",
            fileUrl:"http://dytued.oss-cn-hangzhou.aliyuncs.com/test/WeChatSight2.mp4",
          },
          {
            repositoryId:"2",
            fileCode: "001",
            fileTitle: "1000",
            keyword: "设备",
            creator: "张三",
            createTime:1515554892000,
            remarks: "备注",
            fileUrl:"http://dytued.oss-cn-hangzhou.aliyuncs.com/test/test.xlsx",
          }
        ]
      }
    });
  },


  /**
   * 08010002---新增文档
   * @param  {string}  fileCode        文件编号
   * @param  {string}  fileTitle       文件名称
   * @param  {string}  keyword         关键词
   * @param  {string}  remarks         备注
   * @param  {string}  filePath        文件路径

   */
  "POST /repository/repositoryinfo/save": (req, res) =>{
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },

  /**
   * 08010003---导出
   * @param  {array}   repositoryId        知识库文档id
   */
  "POST /08010003": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },

  /**
   * 08010004---删除
   * @param  {array}   repositoryId        知识库文档id
   */
  "POST /repository/repositoryinfo/delete": (req, res) =>{
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },

  /**
   * 08010005---移动
   * @param  {array}   repositoryId        知识库文档id
   * @param  {number}  fileFolder            文件夹（1、规范标准、2规章制度、3、计划文档、4、报告文档、5、草案文档、6、其他）
   */
  "POST /repository/repositoryinfo/move": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


};
